<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
		$this->display('Account/Index');
    }
    public function login(){
    	if(IS_POST){
    		if($_POST['account']=='admin' && $_POST['password'] == 'admin'){
    			$this->success("登录成功",U("Account/index"));
    		}else{
    			$this->error("登录失败");
    		}
    	}else{
    		$this->display();
    	}
    }
    public function logout(){
        $this->success("注销成功","login");
    }
}